Simple Question (Direct)
Simple Question
Q4772767
P39
Q12737077
USER
Which occupations were the positions for which Anthony Hurd, Baron Hurd were appointed ?
(Q4772767,P39,c(Q12737077))
action filter_type
action find
entity Q4772767
relation P39
type Q12737077
['Q4772767', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q4772767 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
Anthony Hurd, Baron Hurd
action filter_type
action find
entity Anthony Hurd, Baron Hurd
relation position held
type occupation
['Anthony Hurd, Baron Hurd', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Anthony_Hurd,_Baron_Hurd property:position_held ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q18952564 Q16707842
SYSTEM
Member of the House of Lords, Member of Parliament in the United Kingdom
Q18952564 Q16707842
(Q4772767,P39,c(Q12737077))
action filter_type
action find
entity Q4772767
relation P39
type Q12737077
Respectively [ANSWERS] were the positions for which Anthony Hurd, Baron Hurd were appointed
['Q4772767', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q4772767 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
Member of the House of Lords Member of Parliament in the United Kingdom
Respectively Member of the House of Lords and Member of Parliament in the United Kingdom were the positions for which Anthony Hurd, Baron Hurd were appointed
Member of the House of Lords Member of Parliament in the United Kingdom
action filter_type
action find
entity Anthony Hurd, Baron Hurd
relation position held
type occupation
['Anthony Hurd, Baron Hurd', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Anthony_Hurd,_Baron_Hurd property:position_held ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4772767
P102
Q7210356
USER
Which party is Anthony Hurd, Baron Hurd affiliated with ?
(Q4772767,P102,c(Q7210356))
action filter_type
action find
entity Q4772767
relation P102
type Q7210356
['Q4772767', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { resource:Q4772767 property:P102 ?u . ?u rdf:type ontology:Q7210356 }
Anthony Hurd, Baron Hurd
action filter_type
action find
entity Anthony Hurd, Baron Hurd
relation member of political party
type political organization
['Anthony Hurd, Baron Hurd', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { resource:Anthony_Hurd,_Baron_Hurd property:member_of_political_party ?u . ?u rdf:type ontology:political_organization }
[]
political organization
Q9626
SYSTEM
Conservative Party
Q9626
(Q4772767,P102,c(Q7210356))
action filter_type
action find
entity Q4772767
relation P102
type Q7210356
The [ANSWER] is Anthony Hurd, Baron Hurd affiliated with
['Q4772767', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { resource:Q4772767 property:P102 ?u . ?u rdf:type ontology:Q7210356 }
Conservative Party
The Conservative Party is Anthony Hurd, Baron Hurd affiliated with
Conservative Party
action filter_type
action find
entity Anthony Hurd, Baron Hurd
relation member of political party
type political organization
['Anthony Hurd, Baron Hurd', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { resource:Anthony_Hurd,_Baron_Hurd property:member_of_political_party ?u . ?u rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4772767
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q9626,P27,c(Q15617994))
action filter_type
action find
entity Q4772767
relation P27
type Q15617994
['Q9626', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q4772767 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Anthony Hurd, Baron Hurd
action filter_type
action find
entity Anthony Hurd, Baron Hurd
relation country of citizenship
type designation for an administrative territorial entity
['Conservative Party', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Anthony_Hurd,_Baron_Hurd property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q9626,P27,c(Q15617994))
action filter_type
action find
entity Q4772767
relation P27
type Q15617994
[ANSWER] is that person a civilian of
['Q9626', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q4772767 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is that person a civilian of
United Kingdom
action filter_type
action find
entity Anthony Hurd, Baron Hurd
relation country of citizenship
type designation for an administrative territorial entity
['Conservative Party', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Anthony_Hurd,_Baron_Hurd property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P35
Q502895
USER
How many people are elected as the head of state of that administrative territory ?
(Q145,P35,c(Q502895))
action count
action filter_type
action find
entity Q145
relation P35
type Q502895
['Q145', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { resource:Q145 property:P35 ?x . ?x rdf:type ontology:Q502895 }
action count
action filter_type
action find
entity United Kingdom
relation head of state
type common name
['United Kingdom', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { resource:United_Kingdom property:head_of_state ?x . ?x rdf:type ontology:common_name }
[]
common name
SYSTEM
4
Q590227 Q269412 Q280856 Q9682
(Q145,P35,c(Q502895))
action count
action filter_type
action find
entity Q145
relation P35
type Q502895
[ANSWER]
['Q145', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { resource:Q145 property:P35 ?x . ?x rdf:type ontology:Q502895 }
Edward VIII George V George VI Elizabeth II
4
action count
action filter_type
action find
entity United Kingdom
relation head of state
type common name
['United Kingdom', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { resource:United_Kingdom property:head_of_state ?x . ?x rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q766
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations with around the same number of administrative territories as Jamaica ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?z ) WHERE { ?e property:P530 ?s . ?e rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } GROUP BY ?e } . FILTER ( ?z = ?h ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:Q766 property:P530 ?a . ?a rdf:type ontology:Q1048835 } } }
Jamaica
action approx
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 Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?z ) WHERE { ?e property:diplomatic_relation ?s . ?e rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . FILTER ( ?z = ?h ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:Jamaica property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[ANSWERS] have diplomatic relations with around the same number of administrative territories as Jamaica
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?z ) WHERE { ?e property:P530 ?s . ?e rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } GROUP BY ?e } . FILTER ( ?z = ?h ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:Q766 property:P530 ?a . ?a rdf:type ontology:Q1048835 } } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic relations with around the same number of administrative territories as Jamaica
Denmark Canada Austria
action approx
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 Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?z ) WHERE { ?e property:diplomatic_relation ?s . ?e rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . FILTER ( ?z = ?h ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:Jamaica property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q35
P137
Q2424752
USER
Which product can be described as service operator of that political territory ?
(c(Q2424752),P137,Q35)
action filter_type
action find_reverse
entity Q35
relation P137
type Q2424752
[{'concept': 'Q2424752'}, 'P137', 'Q35']
SELECT DISTINCT ?g WHERE { ?g property:P137 resource:Q35 . ?g rdf:type ontology:Q2424752 }
Denmark
action filter_type
action find_reverse
entity Denmark
relation operator
type product
[{'concept': 'product'}, 'operator', 'Denmark']
SELECT DISTINCT ?g WHERE { ?g property:operator resource:Denmark . ?g rdf:type ontology:product }
[]
product
Clarification for simple ques.
Q35
SYSTEM
Did you mean Denmark ?
Q35 Q16 Q40
(c(Q2424752),P137,Q35) (c(Q2424752),P137,Q16) (c(Q2424752),P137,Q40)
[ANSWER]
[{'concept': 'Q2424752'}, 'P137', 'Q35'] [{'concept': 'Q2424752'}, 'P137', 'Q16'] [{'concept': 'Q2424752'}, 'P137', 'Q40']
SELECT DISTINCT ?g WHERE { ?g property:P137 resource:Q35 . ?g rdf:type ontology:Q2424752 }
Denmark Canada Austria
Did you mean Denmark ?
Denmark
[{'concept': 'product'}, 'operator', 'Denmark'] [{'concept': 'product'}, 'operator', 'Canada'] [{'concept': 'product'}, 'operator', 'Austria']
SELECT DISTINCT ?g WHERE { ?g property:operator resource:Denmark . ?g rdf:type ontology:product }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q2424752),P137,Q35)
[{'concept': 'Q2424752'}, 'P137', 'Q35']
[{'concept': 'product'}, 'operator', 'Denmark']
[]
Q18015697
SYSTEM
Meteor NF11
Q18015697
(c(Q2424752),P137,Q35)
action filter_type
action find_reverse
entity Q35
relation P137
type Q2424752
[ANSWER] can be described as service operator of that political territory
[{'concept': 'Q2424752'}, 'P137', 'Q35']
SELECT DISTINCT ?g WHERE { ?g property:P137 resource:Q35 . ?g rdf:type ontology:Q2424752 }
Meteor NF11
Meteor NF11 can be described as service operator of that political territory
Meteor NF11
action filter_type
action find_reverse
entity Denmark
relation operator
type product
[{'concept': 'product'}, 'operator', 'Denmark']
SELECT DISTINCT ?g WHERE { ?g property:operator resource:Denmark . ?g rdf:type ontology:product }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q213 Q16
P27
Q502895
USER
Which people are a native of Canada and Czech Republic ?
AND((c(Q502895),P27,Q16), (c(Q502895),P27,Q213))
action filter_type
action intersection
action find_reverse
entity Q16
relation P27
action find_reverse
entity Q213
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q16'], [{'concept': 'Q502895'}, 'P27', 'Q213']]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . ?g property:P27 resource:Q213 . ?g property:P27 resource:Q16 }
Czech Republic Canada
action filter_type
action intersection
action find_reverse
entity Canada
relation country of citizenship
action find_reverse
entity Czech Republic
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Canada'], [{'concept': 'common name'}, 'country of citizenship', 'Czech Republic']]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . ?g property:country_of_citizenship resource:Czech_Republic . ?g property:country_of_citizenship resource:Canada }
[]
common name
Q20743693 Q119082 Q7939027 Q71819 Q1230856 Q1341089 Q338264
SYSTEM
Heinrich Löwig, Oskar Morawetz, Vlasta Vrána, Elisabeth Mann-Borgese, Jiři Patera, Milan Kymlicka, David Nykl
Q20743693 Q119082 Q7939027 Q71819 Q1230856 Q1341089 Q338264
AND((c(Q502895),P27,Q16), (c(Q502895),P27,Q213))
action filter_type
action intersection
action find_reverse
entity Q16
relation P27
action find_reverse
entity Q213
relation P27
type Q502895
[ANSWERS] are a native of Canada and Czech Republic
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q16'], [{'concept': 'Q502895'}, 'P27', 'Q213']]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . ?g property:P27 resource:Q213 . ?g property:P27 resource:Q16 }
Heinrich Löwig Oskar Morawetz Vlasta Vrána Elisabeth Mann-Borgese Jiři Patera Milan Kymlicka David Nykl
Heinrich Löwig, Oskar Morawetz, Vlasta Vrána, Elisabeth Mann-Borgese, Jiři Patera, Milan Kymlicka and David Nykl are a native of Canada and Czech Republic
Heinrich Löwig Oskar Morawetz Vlasta Vrána Elisabeth Mann-Borgese Jiři Patera Milan Kymlicka David Nykl
action filter_type
action intersection
action find_reverse
entity Canada
relation country of citizenship
action find_reverse
entity Czech Republic
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Canada'], [{'concept': 'common name'}, 'country of citizenship', 'Czech Republic']]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . ?g property:country_of_citizenship resource:Czech_Republic . ?g property:country_of_citizenship resource:Canada }
[]