Simple Question (Direct)
Simple Question
Q217876
P27
Q15617994
USER
Which administrative territory is Rogerinho a civilian of ?
(Q217876,P27,c(Q15617994))
action filter_type
action find
entity Q217876
relation P27
type Q15617994
['Q217876', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q217876 property:P27 ?t }
Rogerinho
action filter_type
action find
entity Rogerinho
relation country of citizenship
type designation for an administrative territorial entity
['Rogerinho', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Rogerinho property:country_of_citizenship ?t }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(Q217876,P27,c(Q15617994))
action filter_type
action find
entity Q217876
relation P27
type Q15617994
Which administrative territory is Rogerinho a civilian of
['Q217876', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q217876 property:P27 ?t }
Brazil
Which administrative territory is Rogerinho a civilian of
Brazil
action filter_type
action find
entity Rogerinho
relation country of citizenship
type designation for an administrative territorial entity
['Rogerinho', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Rogerinho property:country_of_citizenship ?t }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q155
P30
Q2221906
USER
Which geographic location is that administrative territory a part of ?
(Q155,P30,c(Q2221906))
action filter_type
action find
entity Q155
relation P30
type Q2221906
['Q155', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?h WHERE { resource:Q155 property:P30 ?h . ?h rdf:type ontology:Q2221906 }
Brazil
action filter_type
action find
entity Brazil
relation continent
type geographic location
['Brazil', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?h WHERE { resource:Brazil property:continent ?h . ?h rdf:type ontology:geographic_location }
[]
geographic location
Q18
SYSTEM
South America
Q18
(Q155,P30,c(Q2221906))
action filter_type
action find
entity Q155
relation P30
type Q2221906
The [ANSWER] is that administrative territory a part of
['Q155', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?h WHERE { resource:Q155 property:P30 ?h . ?h rdf:type ontology:Q2221906 }
South America
The South America is that administrative territory a part of
South America
action filter_type
action find
entity Brazil
relation continent
type geographic location
['Brazil', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?h WHERE { resource:Brazil property:continent ?h . ?h rdf:type ontology:geographic_location }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q155 Q212
P530
Q1048835
USER
How many political territories have diplomatic relations with Brazil and Ukraine ?
(Q155,P530,c(Q1048835)) (Q212,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q155
relation P530
type Q1048835
action filter_type
action find
entity Q212
relation P530
type Q1048835
['Q155', 'P530', {'concept': 'Q1048835'}] ['Q212', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { resource:Q155 property:P530 ?k . ?k rdf:type ontology:Q1048835 . resource:Q212 property:P530 ?k . ?k rdf:type ontology:Q1048835 }
Brazil Ukraine
action count
action intersection
action filter_type
action find
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Ukraine
relation diplomatic relation
type political territorial entity
['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Ukraine', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { resource:Brazil property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity . resource:Ukraine property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
3
Q408 Q16 Q183
(Q155,P530,c(Q1048835)) (Q212,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q155
relation P530
type Q1048835
action filter_type
action find
entity Q212
relation P530
type Q1048835
[ANSWER]
['Q155', 'P530', {'concept': 'Q1048835'}] ['Q212', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { resource:Q155 property:P530 ?k . ?k rdf:type ontology:Q1048835 . resource:Q212 property:P530 ?k . ?k rdf:type ontology:Q1048835 }
Australia Canada Germany
3
action count
action intersection
action filter_type
action find
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Ukraine
relation diplomatic relation
type political territorial entity
['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Ukraine', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { resource:Brazil property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity . resource:Ukraine property:diplomatic_relation ?k . ?k rdf:type ontology:political_territorial_entity }
[]