Simple Question (Direct)
Simple Question
Q21066290
P21
Q290
USER
What is the sex of Nick Hinds ?
(Q21066290,P21,c(Q290))
action filter_type
action find
entity Q21066290
relation P21
type Q290
['Q21066290', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q21066290 property:P21 ?i . ?i rdf:type ontology:Q290 }
Nick Hinds
action filter_type
action find
entity Nick Hinds
relation gender
type sex
['Nick Hinds', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Nick_Hinds property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q21066290,P21,c(Q290))
action filter_type
action find
entity Q21066290
relation P21
type Q290
The sex of Nick Hinds is the [ANSWER]
['Q21066290', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q21066290 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
The sex of Nick Hinds is the male
male
action filter_type
action find
entity Nick Hinds
relation gender
type sex
['Nick Hinds', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Nick_Hinds property:gender ?i . ?i rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21066290
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Nick Hinds ?
(Q21066290,P27,c(Q15617994))
action filter_type
action find
entity Q21066290
relation P27
type Q15617994
['Q21066290', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q21066290 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Nick Hinds
action filter_type
action find
entity Nick Hinds
relation country of citizenship
type designation for an administrative territorial entity
['Nick Hinds', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Nick_Hinds property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q21066290,P27,c(Q15617994))
action filter_type
action find
entity Q21066290
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Nick Hinds
['Q21066290', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q21066290 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
United States of America
United States of America is the country of citizenship of Nick Hinds
United States of America
action filter_type
action find
entity Nick Hinds
relation country of citizenship
type designation for an administrative territorial entity
['Nick Hinds', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Nick_Hinds property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4967890
Q15617994
USER
And how about Gunilla Molloy?
(Q4967890,P27,c(Q15617994))
action filter_type
action find
entity Q4967890
relation P27
type Q15617994
['Q4967890', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q4967890 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Gunilla Molloy
action filter_type
action find
entity Gunilla Molloy
relation country of citizenship
type designation for an administrative territorial entity
['Gunilla Molloy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Gunilla_Molloy property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q4967890,P27,c(Q15617994))
action filter_type
action find
entity Q4967890
relation P27
type Q15617994
[ANSWER]
['Q4967890', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q4967890 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Sweden
Sweden
action filter_type
action find
entity Gunilla Molloy
relation country of citizenship
type designation for an administrative territorial entity
['Gunilla Molloy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Gunilla_Molloy property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P47
Q1048835 Q15617994
USER
How many political territories and administrative territories are next to the border of that administrative territory ?
(c(Q1048835),P47,Q34) (c(Q15617994),P47,Q34) (c(Q1048835),P47,Q34) (c(Q15617994),P47,Q34)
action count
action union
action filter_type
action find_reverse
entity Q34
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q34
relation P47
type Q15617994
[{'concept': 'Q1048835'}, 'P47', 'Q34'] [{'concept': 'Q15617994'}, 'P47', 'Q34'] [{'concept': 'Q1048835'}, 'P47', 'Q34'] [{'concept': 'Q15617994'}, 'P47', 'Q34']
SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { { ?i rdf:type ontology:Q15617994 . ?i property:P47 resource:Q34 } UNION { ?i property:P47 resource:Q34 . ?i rdf:type ontology:Q1048835 } }
action count
action union
action filter_type
action find_reverse
entity Sweden
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Sweden
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Sweden'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Sweden'] [{'concept': 'political territorial entity'}, 'shares border with', 'Sweden'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Sweden']
SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:shares_border_with resource:Sweden } UNION { ?i property:shares_border_with resource:Sweden . ?i rdf:type ontology:political_territorial_entity } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
1 political territories and 2 administrative territories
Q33 Q20 Q35
(c(Q1048835),P47,Q34) (c(Q15617994),P47,Q34) (c(Q1048835),P47,Q34) (c(Q15617994),P47,Q34)
action count
action union
action filter_type
action find_reverse
entity Q34
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q34
relation P47
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q34'] [{'concept': 'Q15617994'}, 'P47', 'Q34'] [{'concept': 'Q1048835'}, 'P47', 'Q34'] [{'concept': 'Q15617994'}, 'P47', 'Q34']
SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { { ?i rdf:type ontology:Q15617994 . ?i property:P47 resource:Q34 } UNION { ?i property:P47 resource:Q34 . ?i rdf:type ontology:Q1048835 } }
Finland Norway Denmark
1 political territories and 2 administrative territories
action count
action union
action filter_type
action find_reverse
entity Sweden
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Sweden
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Sweden'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Sweden'] [{'concept': 'political territorial entity'}, 'shares border with', 'Sweden'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Sweden']
SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:shares_border_with resource:Sweden } UNION { ?i property:shares_border_with resource:Sweden . ?i rdf:type ontology:political_territorial_entity } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q34 Q804
P530
Q1048835
USER
How many political territories have tactful political relations with Sweden and Panama ?
(c(Q1048835),P530,Q34) (c(Q1048835),P530,Q804)
action count
action intersection
action filter_type
action find_reverse
entity Q34
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q804
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q34'] [{'concept': 'Q1048835'}, 'P530', 'Q804']
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y rdf:type ontology:Q1048835 . ?y property:P530 resource:Q34 . ?y property:P530 resource:Q804 . ?y rdf:type ontology:Q1048835 }
Sweden Panama
action count
action intersection
action filter_type
action find_reverse
entity Sweden
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Panama
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Sweden'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Panama']
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y rdf:type ontology:political_territorial_entity . ?y property:diplomatic_relation resource:Sweden . ?y property:diplomatic_relation resource:Panama . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q16 Q183
(c(Q1048835),P530,Q34) (c(Q1048835),P530,Q804)
action count
action intersection
action filter_type
action find_reverse
entity Q34
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q804
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q34'] [{'concept': 'Q1048835'}, 'P530', 'Q804']
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y rdf:type ontology:Q1048835 . ?y property:P530 resource:Q34 . ?y property:P530 resource:Q804 . ?y rdf:type ontology:Q1048835 }
Canada Germany
2
action count
action intersection
action filter_type
action find_reverse
entity Sweden
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Panama
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Sweden'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Panama']
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y rdf:type ontology:political_territorial_entity . ?y property:diplomatic_relation resource:Sweden . ?y property:diplomatic_relation resource:Panama . ?y rdf:type ontology:political_territorial_entity }
[]