Simple Question (Direct)
Simple Question
Q4755747
P27
Q15617994
USER
Which administrative territory is Andrei Bădescu a civilian of ?
(Q4755747,P27,c(Q15617994))
action filter_type
action find
entity Q4755747
relation P27
type Q15617994
['Q4755747', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q4755747 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Andrei Bădescu
action filter_type
action find
entity Andrei Bădescu
relation country of citizenship
type designation for an administrative territorial entity
['Andrei Bădescu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Andrei_Bădescu property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q218
SYSTEM
Romania
Q218
(Q4755747,P27,c(Q15617994))
action filter_type
action find
entity Q4755747
relation P27
type Q15617994
[ANSWER] is Andrei Bădescu a civilian of
['Q4755747', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q4755747 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Romania
Romania is Andrei Bădescu a civilian of
Romania
action filter_type
action find
entity Andrei Bădescu
relation country of citizenship
type designation for an administrative territorial entity
['Andrei Bădescu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Andrei_Bădescu property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q218
P530
Q15617994
USER
Who holds diplomatic relationship with that one ?
(Q218,P530,c(Q15617994))
action filter_type
action find
entity Q218
relation P530
type Q15617994
['Q218', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q218 property:P530 ?d . ?d rdf:type ontology:Q15617994 }
Romania
action filter_type
action find
entity Romania
relation diplomatic relation
type designation for an administrative territorial entity
['Romania', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Romania property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q148 Q38 Q881
SYSTEM
People's Republic of China, Italy, Vietnam
Q148 Q38 Q881
(Q218,P530,c(Q15617994))
action filter_type
action find
entity Q218
relation P530
type Q15617994
[ANSWERS] hold diplomatic relationship with that one
['Q218', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q218 property:P530 ?d . ?d rdf:type ontology:Q15617994 }
People's Republic of China Italy Vietnam
People's Republic of China, Italy and Vietnam hold diplomatic relationship with that one
People's Republic of China Italy Vietnam
action filter_type
action find
entity Romania
relation diplomatic relation
type designation for an administrative territorial entity
['Romania', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Romania property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q218 Q846
P530
Q1048835
USER
How many political territories have tactful political relations with Romania and Qatar ?
(c(Q1048835),P530,Q218) (c(Q1048835),P530,Q846)
action count
action intersection
action filter_type
action find_reverse
entity Q218
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q846
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q218'] [{'concept': 'Q1048835'}, 'P530', 'Q846']
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { ?d property:P530 resource:Q218 . ?d rdf:type ontology:Q1048835 . ?d property:P530 resource:Q846 . ?d rdf:type ontology:Q1048835 }
Romania Qatar
action count
action intersection
action filter_type
action find_reverse
entity Romania
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Qatar
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Romania'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Qatar']
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { ?d property:diplomatic_relation resource:Romania . ?d rdf:type ontology:political_territorial_entity . ?d property:diplomatic_relation resource:Qatar . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q16
(c(Q1048835),P530,Q218) (c(Q1048835),P530,Q846)
action count
action intersection
action filter_type
action find_reverse
entity Q218
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q846
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q218'] [{'concept': 'Q1048835'}, 'P530', 'Q846']
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { ?d property:P530 resource:Q218 . ?d rdf:type ontology:Q1048835 . ?d property:P530 resource:Q846 . ?d rdf:type ontology:Q1048835 }
Australia Canada
2
action count
action intersection
action filter_type
action find_reverse
entity Romania
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Qatar
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Romania'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Qatar']
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { ?d property:diplomatic_relation resource:Romania . ?d rdf:type ontology:political_territorial_entity . ?d property:diplomatic_relation resource:Qatar . ?d rdf:type ontology:political_territorial_entity }
[]