Simple Question (Direct)
Simple Question
Q869474
P27
Q15617994
USER
Which administrative territory is Michelangelo Albertazzi an inhabitant of ?
(Q869474,P27,c(Q15617994))
action filter_type
action find
entity Q869474
relation P27
type Q15617994
['Q869474', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q869474 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Michelangelo Albertazzi
action filter_type
action find
entity Michelangelo Albertazzi
relation country of citizenship
type designation for an administrative territorial entity
['Michelangelo Albertazzi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Michelangelo_Albertazzi property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q869474,P27,c(Q15617994))
action filter_type
action find
entity Q869474
relation P27
type Q15617994
[ANSWER] is Michelangelo Albertazzi an inhabitant of
['Q869474', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q869474 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Italy
Italy is Michelangelo Albertazzi an inhabitant of
Italy
action filter_type
action find
entity Michelangelo Albertazzi
relation country of citizenship
type designation for an administrative territorial entity
['Michelangelo Albertazzi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Michelangelo_Albertazzi property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38
P530
Q1048835
USER
Who have diplomatic relationships with that administrative territory ?
(Q38,P530,c(Q1048835))
action filter_type
action find
entity Q38
relation P530
type Q1048835
['Q38', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q38 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Italy
action filter_type
action find
entity Italy
relation diplomatic relation
type political territorial entity
['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Italy property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16 Q664
(Q38,P530,c(Q1048835))
action filter_type
action find
entity Q38
relation P530
type Q1048835
[ANSWERS] have diplomatic relationships with that administrative territory
['Q38', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { resource:Q38 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Austria Germany Australia Denmark Canada New Zealand
Germany, Australia and Denmark have diplomatic relationships with that administrative territory
Germany Australia Denmark
action filter_type
action find
entity Italy
relation diplomatic relation
type political territorial entity
['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Italy property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q38
P47
Q1048835 Q7275
USER
How many political territories and states share border with Italy ?
(Q38,P47,c(Q1048835)) (Q38,P47,c(Q7275))
action count
action union
action filter_type
action find
entity Q38
relation P47
type Q1048835
action filter_type
action find
entity Q38
relation P47
type Q7275
['Q38', 'P47', {'concept': 'Q1048835'}] ['Q38', 'P47', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { ?j rdf:type ?g . VALUES ( ?g ) { ( ontology:Q1048835 ) ( ontology:Q7275 ) } }
Italy
action count
action union
action filter_type
action find
entity Italy
relation shares border with
type political territorial entity
action filter_type
action find
entity Italy
relation shares border with
type state
['Italy', 'shares border with', {'concept': 'political territorial entity'}] ['Italy', 'shares border with', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { ?j rdf:type ?g . VALUES ( ?g ) { ( ontology:political_territorial_entity ) ( ontology:state ) } }
[]
political territorial entity state
SYSTEM
1 political territories and 1 states
Q40 Q36704
(Q38,P47,c(Q1048835)) (Q38,P47,c(Q7275))
action count
action union
action filter_type
action find
entity Q38
relation P47
type Q1048835
action filter_type
action find
entity Q38
relation P47
type Q7275
[ANSWER]
['Q38', 'P47', {'concept': 'Q1048835'}] ['Q38', 'P47', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { ?j rdf:type ?g . VALUES ( ?g ) { ( ontology:Q1048835 ) ( ontology:Q7275 ) } }
Austria Yugoslavia
1 political territories and 1 states
action count
action union
action filter_type
action find
entity Italy
relation shares border with
type political territorial entity
action filter_type
action find
entity Italy
relation shares border with
type state
['Italy', 'shares border with', {'concept': 'political territorial entity'}] ['Italy', 'shares border with', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { ?j rdf:type ?g . VALUES ( ?g ) { ( ontology:political_territorial_entity ) ( ontology:state ) } }
[]